package com.clp.protocol.core.common.connect;

import com.clp.protocol.core.common.frame.Frame;

@FunctionalInterface
public interface SendCallback<F extends Frame<F>> {

    default void beforeSend(F frame) {}

    void afterSendSuccess(F frame);

    default void afterSendFailed(F frame, Throwable cause) {}

}
